#include<iostream>
using namespace std;

double fun(int i)
{
  volatile double d[1] = {3.14};
  volatile long int a[2];
  a[i] = 10736741824;
  return d[0];
}
int main()
{

   cout << " fun(0) = " << fun(0) << endl;

   cout << " fun(1) = " << fun(1) << endl;

   cout << " fun(2) = " << fun(2) << endl;

   cout << " fun(3) = " << fun(3) << endl;

   cout << " fun(4) = " << fun(4) << endl;

  return 0;
}
